import React from 'react';
import {withRouter} from "react-router-dom";
import "./style.css";


class NoData extends React.PureComponent {

  browseShopping() {
    this.props.history.push("/home");
  }

  render() {
    return (
      <div>
        {/*没有物品物品时*/}
        <div className="ord-null-box">
          <div className="ord-null-pic">
            <div>
              <div className="ord-null-icon"/>
              <div className="ord-null-tit">没有选购商品哦</div>
            </div>
            {/*<div>*/}
              {/*<div><CustomIcon type="noData" size="50px"/></div>*/}
              {/*<div className="ordNullTit">没有订单数据</div>*/}
            {/*</div>*/}
          </div>
          <div className="btn-casual-look" onClick={this.browseShopping.bind(this)}>随便逛逛</div>
        </div>
      </div>
    );
  }
}

export default withRouter(NoData);
